Skip to content

Add missing docstrings and enforce D1 - #1549

Merged
bact merged 2 commits into
PyThaiNLP:mainfrom
bact:add-missing-docstrings
Oct 6, 2026
Merged

bact merged 2 commits into
PyThaiNLP:mainfrom
bact:add-missing-docstrings

Conversation

@bact

@bact bact commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

What do these changes do

  • Add 273 docstrings to public modules, classes, methods, and functions
  • Remove three pass lines made redundant by the new docstrings
  • Enable the ruff D1 rules for pythainlp/ (tests, notebooks, examples, build_tools, and docs are exempt)
  • Log docstring and code mismatches found in the ROADMAP

What was wrong

How this fixes it

Fixes #...

Your checklist for this pull request

  • Passed code styles and structures
  • Passed code linting checks and unit test

Add missing docstrings and enforce D1

- Add 273 docstrings to public modules, classes, methods, and functions
- Remove three `pass` lines made redundant by the new docstrings
- Enable the ruff D1 rules for `pythainlp/` (tests, notebooks, examples,
  build_tools, and docs are exempt)
- Log docstring and code mismatches found in the ROADMAP

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@bact bact added the documentation improve documentation and test cases label Oct 6, 2026
@coveralls

coveralls commented Oct 6, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 72.626% (+0.01%) from 72.615% — bact:add-missing-docstrings into PyThaiNLP:main

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@bact
bact merged commit d691fff into PyThaiNLP:main Oct 6, 2026
20 of 21 checks passed
@bact
bact deleted the add-missing-docstrings branch October 6, 2026 22:49
@sonarqubecloud

sonarqubecloud Bot commented Oct 6, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
10.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation improve documentation and test cases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants